define("a/tpl/cpc_tpl.html.js",[],function(){ return'\n
\n \n \n
\n <# if(isVideo){ #> \n
\n \n <# }else{ #> \n
\n <# } #>\n\n
\n
\n <# if(avatar){ #>\n \n <# } #>\n \n \n
\n \n <# if(!!title){ #>\n <#=title#>\n <# if(!!price){ #>\n ¥<#=price#>\n <# } #>\n <# } #>\n <# if(!(tag_pos == \'left\' || tag_pos == \'right\')){ #>\n \n
广告
style="display:none"<#}#>>\n \n
\n
\n <# } #>\n
\n
\n \n <# if(!!is_wx_app){ #><# } #><#=btn_text#>\n \n
\n
\n
'; });define("a/appdialog_confirm.js",["widget/wx_profile_dialog_primary.css","a/a_utils.js","common/utils.js","biz_wap/jsapi/core.js","biz_common/utils/url/parse.js","biz_common/tmpl.js","biz_common/dom/event.js","a/appdialog_confirm.html.js"],function(o){ "use strict"; o("widget/wx_profile_dialog_primary.css"); var e=o("a/a_utils.js"),n=o("common/utils.js"),i=o("biz_wap/jsapi/core.js"),a=o("biz_common/utils/url/parse.js"),m=o("biz_common/tmpl.js"),c=o("biz_common/dom/event.js"),s=o("a/appdialog_confirm.html.js"),t=function(o){ if(e.isVideoSharePageOnlyAd()||n.isNativePage()||a.getQuery("get_ad_after_video"))return void i.invoke("confirmDialog",{ title:"是否立即下载该应用", contentDesc:o.app_name, confirmText:"下载", cancelText:"取消", msgIconUrl:o.app_img_url, msgIconWidth:50, msgIconHeight:50 },function(e){ e.err_msg.indexOf("confirmDialog:ok")>-1?o.onOk&&o.onOk():o.onCancel&&o.onCancel(); }); var t=document.createElement("div"); t.innerHTML=m.tmpl(s,o),document.body.appendChild(t),c.on(t.getElementsByClassName("js_ok")[0],"click",function(){ o.onOk&&o.onOk(),document.body.removeChild(t); }),c.on(t.getElementsByClassName("js_cancel")[0],"click",function(){ o.onCancel&&o.onCancel(),document.body.removeChild(t); }); }; return t; });define("biz_common/dom/offset.js",[],function(){ "use strict"; function f(f){ if(!f)return{}; for(var t=0,e=0,o=parseInt(document.body.style.marginTop,10)||0;f.offsetParent;)t+=f.offsetTop, e+=f.offsetLeft,f=f.offsetParent; return{ offsetTop:t>o?t-o:t, offsetLeft:e }; } return{ getOffset:f }; });define("a/video.js",["biz_common/dom/event.js","biz_common/utils/report.js","biz_wap/jsapi/core.js","biz_wap/utils/mmversion.js","a/a_report.js","biz_common/utils/url/parse.js","new_video/player.js","biz_wap/utils/ajax.js","biz_wap/utils/device.js","common/utils.js"],function(e){ "use strict"; function t(e,t){ d("http://mp.weixin.qq.com/mp/ad_report?action=follow&type="+e+t); } function o(){ l({ url:" /mp/ad_video_report?action=video_play_report", data:window.__video_report_data, type:"POST" }); } function i(e,t,o){ var i; return function(){ var r=this,a=arguments,d=function(){ i=null,o||e.apply(r,a); },n=o&&!i; clearTimeout(i),i=setTimeout(d,t),n&&e.apply(r,a); }; } function r(e){ var r=document.getElementById("js_video_container"); e.videoContainer&&(r=e.videoContainer); var d=null,_=e.rl||"",l=""; if(_){ _=_.split("?"),_=_.length>1?_[1]:""; var f=new RegExp("(^|&)viewid=([^&]*)(&|$)","i"),v=_.match(f); v&&(l=unescape(v[2])); } window.__video_report_data={ aid:e.aid, traceid:e.traceid, user_uin:window.user_uin, appmsg_id:mid, item_idx:idx, viewid:l, __biz:biz, report_type:0, play_type:0, play_duration:0, video_duration:0, auto_play:1 }; var y=null,g=!0,h=!1; if(n.isAndroid&&n.gtVersion("6.6.6",!0)&&(h=!0),r){ d=new p({ container:r, cover:e.video_info.thumbUrl, width:r.offsetWidth, height:r.offsetWidth*parseInt(e.video_info.displayHeight)/parseInt(e.video_info.displayWidth), muted:g, ad_muted_btn:g, always_hide_loading:!0, src:e.video_info.videoUrl, pt:e.pt, autoHide:!0, blockTouchVideo:!0, notPauseOtherVideoWhenPlay:!0, onError:function(o){ console.log("播放出错",o),t(129,e.report_param),r.innerHTML='', window.__video_report_data.play_type=3; }, onEnd:function(){ t(130,e.report_param),window.__video_report_data.play_type=1,window.__video_report_data.play_duration=window.__video_report_data.video_duration, window.__video_report_data.report_type=2,d.replay(),o(); }, onTimeupdate:function(e,t){ 2==window.__video_report_data.report_type&&(window.__video_report_data.report_type=3, o()),window.__video_report_data.play_type=2,window.__video_report_data.play_duration=1e3*t.currentTime, window.__video_report_data.video_duration=1e3*d.__getDuration(),u||(window.__video_report_data.report_type=3, o(),u=1); } }),d._showPlayer(),d.setSrc(e.video_info.videoUrl,"auto"); var j=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,b=i(function(){ if(3==window.__video_report_data.play_type)return void a.off(window,"scroll",b); if(0!=window.__video_report_data.auto_play||0!=window.__video_report_data.play_type){ j=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop; var o=m.getInnerHeight(); if(d.isPlay()&&(s.offsetTop>j+o-s.offsetHeight/2||s.offsetTop+s.offsetHeight/29)&&!d.isPlay()&&w.canSupportAutoPlay&&!(s.offsetTop>j+o+s.offsetHeight/2||s.offsetTop+s.offsetHeight-1)"true"==d.video.getAttribute("muted")?(d.triggerMuted(!1), g=!1):(d.triggerMuted(!0),g=!0),t(132,e.report_param);else if(!d.isPlay())return d.__beginPlayHandler(), d.triggerMuted(!0),t(133,e.report_param),void(window.__video_report_data.play_type=2); }),a.on(window,"resize",function(){ setTimeout(function(){ var t=(s.clientWidth,r.offsetWidth),o=r.offsetWidth*parseInt(e.video_info.displayHeight)/parseInt(e.video_info.displayWidth); d.setHeight(o),d.setWidth(t),s.style.width=t,s.style.height=o; },0); }); } var a=e("biz_common/dom/event.js"),d=e("biz_common/utils/report.js"),n=(e("biz_wap/jsapi/core.js"), e("biz_wap/utils/mmversion.js")),_=e("a/a_report.js"),p=(e("biz_common/utils/url/parse.js"), e("new_video/player.js")),s=(_.AdClickReport,e("biz_common/utils/url/parse.js"), document.getElementById("js_bottom_ad_area")),l=e("biz_wap/utils/ajax.js"),u=!1,w=e("biz_wap/utils/device.js"),m=e("common/utils.js"),c=m.getIosMainVersion(); return r; });define("a/tpl/crt_tpl_manager.js",["a/tpl/crt_size_map.js","biz_common/tmpl.js","a/tpl/mpda_bottom_tpl.html.js","a/a_config.js","biz_wap/jsapi/core.js"],function(t){ "use strict"; function r(t,r,a,e){ this.crtSize=t,this.data=r,this.crtData=i(t,r),this.wrapper=a,this.extra=e,this.isInitAppStatus=!1, this.updateData=function(t){ this.data=t,this.extra&&this.extra.customUpdataFunc?this.extra.customUpdataFunc(this.wrapper,this.data):o(this.crtSize,this.data,this.wrapper); },this.getData=function(){ return this.data; },this.getCrtData=function(){ return this.crtData; },this.getWrapperElm=function(){ return this.wrapper; }; var n=o(this.crtSize,this.data,this.wrapper); this.extra&&this.extra.afterRenderFunc&&this.extra.afterRenderFunc(this.wrapper,this.data), p[t]&&p[t].afterRender&&p[t].afterRender(n,this.wrapper); } function a(t,r){ var a,e,i; if(!p[t])return console.error("[广告渲染失败]发现未见过的crt_size:",t),!1; if(p[t].multiLogic)for(var n=0;n\n'; });define("a/sponsor_a_tpl.html.js",[],function(){ return'\n
\n
\n

广告,也可以是生活的一部分

\n
\n \n
\n'; });define("a/a_tpl.html.js",[],function(){ return'
\n <# if(pos_type==0){ #>\n <#if(window.new_appmsg){#>\n
\n 广告 \n
style="display:none"<#}#>>\n \n
\n \n
\n
\n <#}else{#>\n
\n 广告\n \n
style="visibility:hidden"<#}#>">\n \n
\n \n
\n <# } #>\n <# } #>\n \n
'; });define("a/mpshop.js",["biz_common/dom/event.js","biz_common/utils/report.js","a/a_report.js","biz_wap/utils/ajax.js","biz_wap/utils/position.js","biz_wap/jsapi/core.js","biz_common/utils/url/parse.js","biz_wap/utils/openUrl.js"],function(t){ "use strict"; function e(t,e){ s("http://mp.weixin.qq.com/mp/ad_report?action=follow&type="+t+e.report_param); } function i(t){ var i=t.adData,s=t.pos_type||0,a=i.tid,l=i.type,m=(i.adid,i.outer_id),c=i.url,j=i.rl,u={}; t.report_param=t.report_param||""; var d=t.btn; if(d){ o.on(d,"click",function(i){ if(!u[a]){ u[a]=!0; var o,d,b,z,f=!!i&&i.target; f&&(o=p.getX(f,"js_ad_link")+i.offsetX,d=p.getY(f,"js_ad_link")+i.offsetY,b=document.getElementsByClassName("js_ad_link")[0]&&document.getElementsByClassName("js_ad_link")[0].clientWidth, z=document.getElementsByClassName("js_ad_link")[0]&&document.getElementsByClassName("js_ad_link")[0].clientHeight), n({ type:l, report_type:2, click_pos:0, url:encodeURIComponent(c), tid:a, rl:encodeURIComponent(j), __biz:biz, pos_type:s, pt:106, pos_x:o, pos_y:d, ad_w:b||0, ad_h:z||0 },function(){ u[a]=!1,e(61,t),_(r.join(c,{ outer_id:m })); }); } return!1; }); } } var o=t("biz_common/dom/event.js"),s=t("biz_common/utils/report.js"),a=t("a/a_report.js"),n=a.AdClickReport,p=(t("biz_wap/utils/ajax.js"), t("biz_wap/utils/position.js")),r=(t("biz_wap/jsapi/core.js"),t("biz_common/utils/url/parse.js")),_=t("biz_wap/utils/openUrl.js").openUrlWithExtraWebview; return i; });define("a/wxopen_card.js",["biz_wap/jsapi/core.js","biz_common/utils/report.js","biz_wap/utils/mmversion.js","biz_common/utils/monitor.js","biz_wap/utils/openUrl.js"],function(e){ "use strict"; function i(e,i){ c("http://mp.weixin.qq.com/mp/ad_report?action=follow&type="+e+i); } function t(e){ var t=e.url||""; t=t.replace(/&/g,"&"); var n=t.indexOf("?"),c=0; (119==e.pt||120==e.pt)&&(c=2),e.report_param="&tid="+e.traceid+"&ticket="+e.ticket+"&aid="+e.aid, t.indexOf("?")>=0?t=t.slice(0,n)+".html"+t.slice(n):t+=".html"; var _="",l=""; if(document.getElementsByTagName("mpcpc")[0]&&document.getElementsByTagName("mpcpc")[0].dataset&&(_=document.getElementsByTagName("mpcpc")[0].dataset.category_id_list), "undefined"==typeof w){ var w; w=window.cgiData&&window.cgiData.__biz?window.cgiData.__biz:window.parent.biz; } l=e.traceid+":"+_+":"+w+":"+e.aid+":"+e.pos_type,console.log("sceneNote",l); var g={ scene:1067, sceneNote:l, userName:e.weapp_info.original_id+"@app", relativeURL:t, appVersion:1 },f=!1,v=navigator.userAgent.match(/MicroMessenger\/(\d+)\.(\d+)\.(\d+)/); if(v){ var b=Number(v[1]),j=Number(v[2]),z=Number(v[3]); b>6?f=!0:6===b&&j>5?f=!0:6===b&&5===j&&z>=3&&(f=!0); } return console.log("canJumpOnTap : ",f,e.weapp_info.original_id,navigator.userAgent), f?(u.setSum(110696,0,1),o?u.setSum(110696,3,1):(o=!0,a=+new Date),r?+new Date-r<2e3&&(u.setSum(110696,4,1), setTimeout(function(){ r=0; },2e3)):r=+new Date,p?+new Date-p<3e3&&(u.setSum(110696,5,1),setTimeout(function(){ p=0; },3e3)):p=+new Date,s?+new Date-s<4e3&&(u.setSum(110696,6,1),setTimeout(function(){ s=0; },4e3)):s=+new Date,void m.invoke("openWeApp",g,function(t){ var n=+new Date-a; "openWeApp:ok"===t.err_msg&&i(125+c,e.report_param),"system:function_not_exist"===t.err_msg&&(d("https://mp.weixin.qq.com/mp/waerrpage?type=upgrade&original_id="+encodeURIComponent(e.weapp_info.original_id)+"#wechat_redirect"), i(126+c,e.report_param)),u.setAvg(110696,2,n).send(),o=!1; })):(d("https://mp.weixin.qq.com/mp/waerrpage?type=upgrade&original_id="+encodeURIComponent(e.weapp_info.original_id)+"#wechat_redirect"), void i(126+c,e.report_param)); } function n(e){ m.invoke("preloadMiniProgramContacts",{ userNames:[e.weapp_info.original_id+"@app"] },function(){}),m.invoke("preloadMiniProgramEnv",{ userNames:[e.weapp_info.original_id+"@app"] },function(){}); } var o,a,r,p,s,m=e("biz_wap/jsapi/core.js"),c=e("biz_common/utils/report.js"),u=(e("biz_wap/utils/mmversion.js"), e("biz_common/utils/monitor.js")),d=e("biz_wap/utils/openUrl.js").openUrlWithExtraWebview; return{ openWxopen:t, startConnect:n }; });define("a/card.js",["biz_common/dom/event.js","biz_common/utils/report.js","a/a_report.js","biz_wap/utils/ajax.js","biz_wap/utils/position.js","biz_wap/jsapi/core.js","biz_wap/jsapi/cardticket.js"],function(e,t,a,i){ "use strict"; function o(e,t){ r("http://mp.weixin.qq.com/mp/ad_report?action=follow&type="+e+t.report_param); } function s(e){ var t=e.adData,a=e.pos_type||0,i=t.tid,r=t.type,p=t.url,d=t.rl,l={}; e.report_param=e.report_param||""; var m=e.btn; if(m){ n.on(m,"click",function(n){ if(!l[i]){ l[i]=!0; var m,j,u,f,b=!!n&&n.target; b&&(m=_.getX(b,"js_ad_link")+n.offsetX,j=_.getY(b,"js_ad_link")+n.offsetY,u=document.getElementsByClassName("js_ad_link")[0]&&document.getElementsByClassName("js_ad_link")[0].clientWidth, f=document.getElementsByClassName("js_ad_link")[0]&&document.getElementsByClassName("js_ad_link")[0].clientHeight), c({ type:r, report_type:2, click_pos:0, url:encodeURIComponent(p), tid:i, rl:encodeURIComponent(d), __biz:biz, pos_type:a, pt:105, pos_x:m, pos_y:j, ad_w:u||0, ad_h:f||0 },function(){ l[i]=!1,o(37,e),s.openCardDetail(t.card_id,t.card_ext,e); }); } return!1; }); } } var n=e("biz_common/dom/event.js"),r=e("biz_common/utils/report.js"),p=e("a/a_report.js"),c=p.AdClickReport,_=(e("biz_wap/utils/ajax.js"), e("biz_wap/utils/position.js")),d=(e("biz_wap/jsapi/core.js"),e("biz_wap/jsapi/cardticket.js")); return s.openCardDetail=function(e,t,a){ d.openCardDetail({ card_id:e, card_ext:t, success:function(){ !!a&&o(38,a); }, error:function(){ !!a&&o(39,a),i("调起卡券错误"); }, access_denied:function(){ !!a&&o(40,a),i("异常错误[access_denied]"); } }); },s; });define("biz_wap/utils/position.js",[],function(){ "use strict"; function e(t,f){ var s=t.offsetLeft; if(t.offsetParent&&t.offsetParent.className){ var a=t.offsetParent.className; -1==a.indexOf(f)&&(s+=e(t.offsetParent,f)); } return s; } function t(e,f){ var s=e.offsetTop; if(e.offsetParent&&e.offsetParent.className){ var a=e.offsetParent.className; -1==a.indexOf(f)&&(s+=t(e.offsetParent,f)); } return s; } return{ getX:e, getY:t }; });define("a/a_report.js",["biz_wap/utils/ajax.js","biz_wap/jsapi/core.js","biz_wap/utils/mmversion.js","appmsg/log.js","a/a_sign.js","a/a_utils.js"],function(e){ "use strict"; function t(e,t){ var a="https:"==location.protocol?1500:1200,c=window.__report,u="/mp/advertisement_report?r="+Math.random()+"&ascene="+encodeURIComponent(window.ascene||-1)+"&",l=[],m=!1,w=!1; for(var j in e)e.hasOwnProperty(j)&&l.push(j+"="+e[j]); var f=2; 1==window.__ad_has_exposure&&(f=1),l.push("has_exposure="+f),u+=l.join("&"); var g="trace_id="+e.tid+"&product_type="+e.pt+"&jump_url="+e.url+"&logtype=3&url="+encodeURIComponent(location.href)+"&rl="+e.rl; e.tid&&n.gtVersion("6.3.22",!0)&&s.invoke("adDataReport",{ ad_info:g, need_record_page_operation:1 },function(){}),p("[Ad report] url="+u),2==f&&window.__addIdKeyReport("68064",0), window.__ad_test_exposure||window.__addIdKeyReport("68064",7),d.createSign(e,function(r,s,n,d,l){ var j=u; u+="&ad_sign_data="+r+"&ad_sign_k1="+s+"&ad_sign_k2="+n+"&ad_sign_md5="+d,p("[Ad click real report] url="+u), c&&c(123),o({ url:u, mayAbort:!0, type:"GET", success:function(e){ c&&c(56+i),p("[Ad report suc]"+e),w=!0; }, error:function(e){ c&&c(57+i),p("[Ad report error]"+e.status+":"+e.responseText); }, complete:function(){ m||(m=!0,!!t&&t()),p("[Ad report complete]"); }, async:!0 }),setTimeout(function(){ m||(m=!0,window.__ajaxtest="1",c&&c(112),!!t&&t(),p("[Ad report timeout complete]")); },a),setTimeout(function(){ w||o({ url:u, type:"GET", success:function(e){ c&&c(113+i),p("[Ad report suc retry]"+e); }, error:function(e,t){ c&&c(114+i),p("[Ad report error retry]"+e.status+":"+e.responseText),1==t.type?c&&c(115+i):2==t.type?c&&c(116+i):3==t.type&&c&&c(117+i), p("[Ad report error detail]"+t.toString()); } }); },2e3),_.reportUrlLength(r,s,n,d,l,e,j); }),r(e); } function r(e){ var t={ biz_click_add:[{ clktime:parseInt(+new Date/1e3), aid:parseInt(e.aid), pos_type:parseInt(e.pos_type), traceid:e.tid }] }; t=JSON.stringify(t),o({ url:"/mp/advertisement_report?action=extra_report&extra_data="+t+"&__biz="+biz, type:"GET", timeout:2e3, success:function(e){ console.log(e); } }); } var o=e("biz_wap/utils/ajax.js"),a=location.protocol,i="https:"==a?5:0,s=e("biz_wap/jsapi/core.js"),n=e("biz_wap/utils/mmversion.js"),p=e("appmsg/log.js"),d=e("a/a_sign.js"),_=e("a/a_utils.js"); return{ AdClickReport:t }; });define("biz_wap/utils/show_time.js",["biz_common/dom/event.js","biz_wap/utils/ajax.js"],function(t){ "use strict"; function i(){ try{ return JSON.parse(localStorage.getItem(d)); }catch(t){ return{}; } } function e(){ try{ localStorage.removeItem(d); }catch(t){} } function n(t,e){ var n=i()||{}; n[t]={ traceid:l[t].info.traceid, aid:+t, staytime:e, pos_type:l[t].info.pos_type }; try{ localStorage.setItem(d,JSON.stringify(n)); }catch(o){} } function o(t){ var e=i()||{}; return e[t]?e[t].staytime:0; } function r(t,i){ var e=t.id||t.aid; if(l[e]){ if(l[e].intervalId)return; }else l[e]={}; l[e].intervalId=setInterval(function(){ var t=o(e); n(e,t+f); },f),i||(l[e].inViewport=!0,l[e].info=t); } function a(t,i){ l[t]&&l[t].intervalId&&(clearInterval(l[t].intervalId),l[t].intervalId=null,i||(l[t].inViewport=!1)); } function s(){ window.__ajaxtest="2"; var t=i(),n={ biz_ad_exposure_time:[] }; if(t&&!window.__second_open__){ for(var o in t)n.biz_ad_exposure_time.push(t[o]); n.biz_ad_exposure_time.length&&(n=JSON.stringify(n),u({ url:"/mp/advertisement_report?action=extra_report&extra_data="+n+"&__biz="+biz, type:"GET", mayAbort:!0, async:!1, timeout:2e3, success:function(){ e(); } })); } } function _(){ c.bindVisibilityChangeEvt(function(t){ for(var i in l)t?l[i].inViewport&&r({ id:i },!0):a(i,!0); }),c.on(window,"unload",s),c.on(window,"load",s); } var c=t("biz_common/dom/event.js"),u=t("biz_wap/utils/ajax.js"),d="__WXLS__AD_SHOW_TIME",l={},f=100; return _(),{ startShow:r, stopShow:a }; });define("biz_common/utils/get_para_list.js",[],function(){ "use strict"; function r(r){ if(!r||1!==r.nodeType)return!1; for(var e=0;e-1)return!0; return i.indexOf(r.tagName)>-1; } function t(n,a){ var i=n.children; if(!i.length)return i; for(var u,o=[],c=0;cn;n++)a[n]&&(e=a[n].split("="), t[e[0]]=e[1]); return t; }(), file:(r.pathname.match(/([^\/?#]+)$/i)||[,""])[1], hash:r.hash.replace("#",""), path:r.pathname.replace(/^([^\/])/,"/$1"), relative:(r.href.match(/tps?:\/\/[^\/]+(.+)/)||[,""])[1], segments:r.pathname.replace(/^\//,"").split("/") }; } function t(e,t){ var o; t=t||1,0==e.indexOf("/")&&(o=r(location.href),e=o.protocol+"://"+o.host+e,console.log("openUrlWithExtraWebview with relative path:",e)), e=e.replace(/(#[^#]*)+/,function(e,r){ return r; }),a.invoke("openUrlWithExtraWebview",{ url:e, openType:t },function(r){ -1==r.err_msg.indexOf("ok")&&(location.href=e); }); } var a=e("biz_wap/jsapi/core.js"); return{ openUrlWithExtraWebview:t }; });define("a/a_sign.js",["biz_wap/jsapi/core.js","biz_common/jquery.md5.js"],function(e){ "use strict"; function n(e,n){ var o=""; if(e.beforeSign)o=e.beforeSign;else{ return n(0,0,0,0,{}); var t,r,a; } r=window.md5(o),i.invoke("calRqt",{ rqt:r },function(e){ var i,o,c; e.data&&e.k1&&e.k2?(i=encodeURIComponent(e.data),o=e.k1,c=e.k2,!t&&n(i,o,c,r,a)):!t&&n(0,0,0,r,a), t=!0; }),setTimeout(function(){ !t&&n(0,0,0,r,a),t=!0; },e.timeout||500); } var i=e("biz_wap/jsapi/core.js"); return e("biz_common/jquery.md5.js"),{ createSign:n }; });